import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'
import routes from './routers'
function App() {
    return (
        <Router>
            <Switch>
                {routes.map((item) => {
                    return <Route {...item} key={item}></Route>
                })}
            </Switch>
        </Router>
    )
}

export default App
